package cn.congzhou.crm.mapper;

import cn.congzhou.crm.domain.Customer;
import cn.congzhou.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {

    int insert(Customer record);

    Customer selectByPrimaryKey(Long id);

    List<Customer> selectAll();

    int updateByPrimaryKey(Customer record);

    //更新移交信息
    void updateTransferById(@Param("sellerId") Long sellerId, @Param("status") Integer status, @Param("id") Long id);

    List<Customer> selectByPage(QueryObject qo);

    void changeCustomerStatus(@Param("cusId") Long cusId, @Param("status") Integer status);


}